<!DOCTYPE html>
<html lang="en">
	<head>
		<include file="Index/head" />
	</head>

	<body>
		<include file="Index/header" />

		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<div class="main-container-inner">
				<a class="menu-toggler" id="menu-toggler" href="#">
					<span class="menu-text"></span>
				</a>

				<include file="Index/menu" />
				
				<div class="main-content">
					<include file="Index/nav" />

					<div class="page-content">
						
							<!-- /**
							 * 右侧页面begin
							 */ -->
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->

								<form class="form-horizontal" role="form" method="POST" enctype="multipart/form-data">
								<div class="space-4"></div>
								<div class="space-4"></div>
								<div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 抽样编号/样品编号: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="control_no"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 标称生产企业名称: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="firm_name"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 标称生产企业地址: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="firm_address"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 被抽样单位名称: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="department_name"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 被抽样单位地址: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="location"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 被抽样单位所在省份: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="province"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 抽样地（城市）: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="city"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > <font color="red">*</font>样品名称/产品名称: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="product_name"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > <font color="red">*</font>产品短名: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="short_product_name"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
<!--                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 产品分类(大类): </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="s_category"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>-->
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                    <label class="col-sm-3 control-label no-padding-right" > <font color="red">*</font>产品分类(小类): </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="b_category"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 产品类型(食品/药品/保健品): </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="product_type"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > <font color="red">*</font>规格/型号: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="product_model"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > <font color="red">*</font>商标/品牌: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="brand"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > <font color="red">*</font>生产日期/批号: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="cdate"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> <font color="red">*</font>检测结果/是否合格: </label>
                                                                        <div class="radio" style="float:left; margin-right:10px; margin-top:-4px;">
                                                                                <label>
                                                                                        <input name="qualified" type="radio" value="1" class="ace" checked="checked">
                                                                                        <span class="lbl"> 合格</span>
                                                                                </label>
                                                                        </div>

                                                                        <div class="state" style="float:left; margin-right:10px; margin-top:3px;">
                                                                                <label>
                                                                                        <input name="qualified" type="radio" value="0" class="ace" >
                                                                                        <span class="lbl"> 不合格</span>
                                                                                </label>
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 检测项目: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="item_name"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 检测项目分类(大类): </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="item_category"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 检测项目分类(小类): </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="items"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 检验结果值: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="check_result"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 标准限量值: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="standard"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 商品条码: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="barcode"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 公告号: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="bulletin_code_num"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > <font color="red">*</font>公告日期: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="bulletin_code"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
<!--                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 公告日期数字格式: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="name"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>-->
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 抽检项目/检验项目: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="check_items"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 标称批准文号: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="batch_no"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > <font color="red">*</font>数据来源/任务来源/项目名称: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="origin"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 检测机构: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="institution"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > 备注: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="remark"   class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                <div class="space-4"></div>
                                                                <div class="form-group">
                                                                        <label class="col-sm-3 control-label no-padding-right" > <font color="red">*</font>导入标识: </label>
                                                                        <div class="col-sm-9">
                                                                                <input type="text" name="import_remark" value="{$import_remark}"  class="col-xs-10 col-sm-5">
                                                                        </div>
                                                                </div>
                                                                
                                                                
									
                                                                <div class="space-4"></div>

                                                                <div class="form-group">
                                                                <label class="col-sm-3 control-label no-padding-right" for="form-field-2"></label>
                                                                &nbsp;&nbsp;&nbsp;
                                                                <div class="space-4"></div>

                                                                </div>


                                                                <div class="clearfix form-actions">
                                                                        <div class="col-md-offset-3 col-md-9">
                                                                                <button class="btn btn-info" type="submit">
                                                                                        <i class="icon-ok bigger-110"></i>
                                                                                        添加
                                                                                </button>									
                                                                        &nbsp; &nbsp; &nbsp;
                                                                        <a href="{:U('third_part_product')}">
                                                                                <button class="btn" type="button">
                                                                                        <i class="icon-undo bigger-110"></i>
                                                                                        返回
                                                                                </button>
                                                                        </a>

                                                                        </div>
                                                                </div>

                                                                <div class="hr hr-24"></div>

                                                                </div><!-- /row -->

								</form>

						</div>
							<!-- /**
							 * 右侧页面end
							 */ -->
					</div><!-- /.page-content -->
				</div>

			</div><!-- /.main-container-inner -->

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="icon-double-angle-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->

		<include file="Index/footer" />
		<script type="text/javascript">
		$(document).ready(function(){
			$("#classify").change(function(){
				$("#classify_son").empty();
				var id=$("#classify").val();
				var url="{:U('Admin/Product/ready_classify')}"
				$.ajax({
					type:'post',
					url:url,
					data:{id:id},
					dataType:'json',
					success: function(data){
						var str='';
						$.each(data,function(k,v){
							str+="<option value='"+v['id']+"'>";
							str+=v['name']+"</option>";
						});

						$("#classify_son").append(str);
					}
				});
			});

		});
		</script>
	</body>
</html>
